package com.lxh.factory;

/**
 * 工厂模式
 */
public class YangLaoYuan {

    public static void main(String[] args) {
        LeiFengFactory factory = new StudentFactory();
//        LeiFengFactory factory = new VolunteerFactory();

        LeiFeng leiFeng = factory.createLeiFeng();

        leiFeng.sweep();
        leiFeng.wash();
    }
}
